const mysql=require('mysql')

const Connect = mysql.createConnection({
    host:"localhost",
    port:"3306",
    user:"root",
    password:"root",
    database:"biao"
})

Connect.connect((err)=>
{
    if(!err)
    {
        console.log("数据库连接成功！");
    }
    else
    {
        console.log("数据库连接失败！");
    }
})

module.exports=Connect